# Tanım: Deepin grafiksel kullanıcı arabirimi kütüphanesi
# URL: https://github.com/linuxdeepin/dtkwidget
# Paketçi: Cihan_Alkan
# Gerekler: deepin-qt-dbus-factory dtkcore startup-notification qt5 librsvg
# Grup: kütüphane

isim=dtkwidget
surum=2.0.9.11
devir=1
kaynak=(https://github.com/linuxdeepin/dtkwidget/archive/$surum.tar.gz::dtkwidget-$surum.tar.gz)

derle() {
  [ ! -f /usr/bin/lrelease ] && ln -s /usr/bin/lrelease-qt5 /usr/bin/lrelease
  sed -i 's/x11/x11 xi/' dtkwidget-$surum/src/widgets/private/keyboardmonitor/keyboardmonitor.pri
  cd dtkwidget-$surum
  LDFLAGS=${LDFLAGS/,-z,now/}
  qmake-qt5 PREFIX=/usr
  make
  make INSTALL_ROOT="$PKG" install
  [ -f /usr/bin/lrelease ] && rm /usr/bin/lrelease
}